#!/bin/bash 
# using the tee command

tempfile=test22file

echo "###START###" | tee $tempfile
echo "Hello World" | tee -a $tempfile
echo "###END###" | tee -a $tempfile


